package Before826.Synchronized;

public class MyThread1 extends Thread {
    Object lock = new Object();
    Integer integer = 0;
    @Override
    public  void run () {
            for (int i = 0; i < 10; i++) {
                integer++;
                System.out.println(integer);
            }
    }
}
